// another method : request.js
var http = require('http');

var opt = {
	host: 'localhost',
	port: 3000,
	path: '/post',
	method: 'POST',
	headers: {
		'Content-type': 'application/x-www-form-urlencoded'
	}
};
var req = http.request(opt, function(res) {
	res.setEncoding('utf8');
	var data = '';
	res.on('data', function(chunk) {
		data += chunk;
	});
	res.on('end', function() {
		console.log('data:' + data);
	});
});

req.write('name=wzq');
req.end();